package me.luraframework.auth.util;


import java.util.Objects;

public class ValidationUtil {

    /**
     * 验证空
     */
    public static void isNull(Object obj, String entity, String parameter , Object value){
        if(Objects.isNull(obj)){
            String msg = entity + " 不存在: "+ parameter +" is "+ value;
            throw new RuntimeException(msg);
        }
    }

}
